<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>LAPORAN CATATAN PERSEDIAAN BBM</title>
<link rel='stylesheet' type='text/css' href='../assets/modules/main/css/printstyle_nocolor.css'/>
</head>
<!-- <body onload="window.print();"> -->
<body>
<table width="100%" border="0" class="clear">
  <tr class="clear">
    <td colspan="4" class="clear"><table width="100%" border="0">
      <tr class="clear">
        <td width="12%" class="clear"><img src="../assets/images/logo.jpg" alt="pertamax gan" width="119" height="110" /></td>
        <td width="3%" class="clear">&nbsp;</td>
        <td width="73%" valign="top" class="clear"><?php echo @$header->spbu_code."<br/>".@$header->spbu_name."<br/>".@$header->spbu_address."<br/>".@$header->spbu_city_name; ?></td>
        <td width="12%" align="right" class="clear" valign="top"><img src="../assets/images/pasti_pas.jpg" alt="pasti pas gan" width="114" height="104" /></td>
      </tr>
    </table><hr/></td>
  </tr>
  <tr class="clear">
    <td height="38" colspan="3" class="clear"><strong>LAPORAN CATATAN PERSEDIAAN BBM</strong></td>
    <td align="right" width="100" style="border: none;"><a href="<?php echo base_url();?>index.php?c=c_laporan_cat_pers_bbm&m=download_print_list">Download PDF</a></td>
  </tr>
  <tr class="clear" >
    <td width="9%" class="clear">Produk : </td>
    <td width="25%" class="clear"><?php echo @$title->produk; ?></td>
    <td width="13%" class="clear">Tangki Pendam : </td>
    <td width="53%" class="clear"><?php echo @$title->gudang; ?></td>
  </tr>
</table>
<table width="100%" border="1">
  <tr>
    <td colspan="2" rowspan="2">&nbsp;</td>
    <td align="center">Awal</td>
    <td colspan="6" align="center">Penerimaan</td>
    <td colspan="4" align="center">Pengeluaran</td>
  </tr>
  <tr>
    <td align="center">a</td>
    <td colspan="3" align="center">&nbsp;</td>
    <td align="center">b</td>
    <td align="center">c</td>
    <td align="center">d=b-c</td>
    <td align="center">e</td>
    <td align="center">f=a+c-e</td>
    <td align="center">g</td>
    <td align="center">h=g-f</td>
  </tr>
  <tr>
    <td width="8%">Tanggal</td>
    <td width="3%">Shift</td>
    <td width="5%" align="center" valign="top">Stok Awal (L) </td>
    <td width="6%" align="center" valign="top">No. Pol Mobil Tangki </td>
    <td width="5%" align="center" valign="top">No. PNBP (DO) </td>
    <td width="4%" align="center" valign="top">Volume Sebelum Penerimaan (L) </td>
    <td width="5%" align="center" valign="top">Volume Penerimaan PNBP (L) </td>
    <td width="5%" align="center" valign="top">Volume Penerimaan Aktual (L) </td>
    <td width="7%" align="center" valign="top">Selisih Volume - R/L (L) </td>
    <td width="4%" align="center" valign="top">Pengeluaran Dispenser (L) </td>
    <td width="4%" align="center" valign="top"><p>Stok Akhir Teoritis (L) </p>    </td>
    <td width="7%" align="center" valign="top">Stok Akhir Aktual (L) </td>
    <td width="5%" align="center" valign="top">Selisih Total Pengeluaran (L) </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>g/cm&sup3;</td>
    <td>&deg;C</td>
    <td>g/cm&sup3;</td>
    <td>cm</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>g/cm&sup3;</td>
    <td>g/cm&sup3;</td>
    <td>&deg;C</td>
  </tr>
  <?php
  if(count($data)>0 && $data<>0) {
  foreach($data as $data_list){
  ?>
  <tr>
    <td><?php echo $data_list->shift_date; ?></td>
    <td><?php echo $data_list->shift_id; ?></td>
    <td align="right"><?php echo number_format($data_list->stok_awal, 0, ',', '.'); ?></td>
    <td><?php echo $data_list->bbmrec_nopol; ?></td>
    <td><?php echo $data_list->bbmrec_do; ?></td>
    <td align="right"><?php echo number_format($data_list->bbmrec_volume_a, 2, ',', '.'); ?></td>
    <td align="right"><?php echo number_format($data_list->bbmrec_volume, 2, ',', '.'); ?></td>
    <td align="right"><?php echo number_format($data_list->bbmrec_volume_actual, 2, ',', '.'); ?></td>
    <td align="right"><?php echo number_format($data_list->bbmrec_volume_diff, 2, ',', '.'); ?></td>
    <td align="right"><?php echo number_format($data_list->pengeluaran_dispenser, 2, ',', '.'); ?></td>
    <td align="right"><?php echo number_format($data_list->stok_akhir_teoritis, 2, ',', '.'); ?></td>
    <td align="right"><?php echo number_format($data_list->stok_akhir_aktual, 2, ',', '.'); ?></td>
    <td align="right"><?php echo number_format($data_list->stok_akhir_selisih, 2, ',', '.'); ?></td>
  </tr>
  <?php } 
  }
  ?>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
